
include $(TOP_DIR)/build/common.mk

TARGET = sample_ffdemux

SRC = sample_ffdemux.c

LOCAL_INCLUDE = -I$(OUT_DIR)/include \
	-I$(FRAMEWORK_DIR)/base/lindutils

LOCAL_LIBRIARY =-L$(OUT_DIR)/lib/ \
	-lldutils -llindcomponent

ENABLE_AO = 1
ifeq ($(ENABLE_AO) , 1)
LOCAL_CFLAGS += -DENABLE_AO -lavwrapper
endif

ifneq ($(TARGET_OS) , android)
LOCAL_LIBRIARY += -lpthread
else
LOCAL_CFLAGS += -pie -fPIE
endif

all: 
	$(CC) $(SRC) -o $(TARGET) $(LOCAL_LIBRIARY) $(LOCAL_INCLUDE) $(LOCAL_CFLAGS) -g -rdynamic -Wl,--allow-shlib-undefined
	$(INSTALL) $(TARGET) $(OUT_DIR)/bin/$(TARGET)
	rm -rf $(TARGET) $(OBJFILE)

clean:
	rm -rf $(OUT_DIR)/bin/$(TARGET)
